<script setup lang="ts">
import { provide } from 'vue'
import { activatedItemKey } from './symbol-key.ts'

const modelValue = defineModel<string | number>()
// @ts-expect-error: 必须传递初始要激活的key
provide(activatedItemKey, modelValue)
</script>

<template>
  <ul class="rounded-md overflow-hidden">
    <slot />
  </ul>
</template>
